<%@ Page Language="C#" AutoEventWireup="true" Inherits="H2.NET.Web.Workflow.Complete2" Codebehind="Complete2.aspx.cs" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title><%=clsCmm.getTextValue("frm_complete_title")%></title>
    <style type="text/css">       
        .gv_boder{width:100%; margin-top:3px;}
        .gv_boder .th{height:28px; text-decoration: underline; background-color:#EDEDED;color:#6C6B6B; text-align:left; font-size: 9pt;font-family:Arial; font-weight:bold;padding-left:2px;}
        .gv_boder .thcd{height:30px; text-align:left;font-size: 9pt;font-family:Arial; border-bottom:dotted 1px Gray;}
        .gv_boder .thcl1{height:28px; text-align:left;font-size: 9pt;font-family:Arial; border-top:solid 1px #EDEDED;color:#6C6B6B;}
        .gv_boder .thcl2{height:28px; text-align:left;font-size: 9pt;font-family:Arial; border-top:solid 1px #EDEDED; background-color:#F9F9F9;color:#6C6B6B;}
    </style>
</head>
<script type="text/javascript">
	function winOpenFullScreen(strURL)
	{
		var sheight = screen.height-150;
		var swidth = screen.width-10;
		var winoption ="left=0,top=0,height="+sheight+",width="+swidth+",toolbar=yes,menubar=yes,location=yes,status=yes,scrollbars=yes,resizable=yes";		
		var tmp=window.open(strURL,'',winoption);
		return tmp;
	} 
</script>
<body>
    <form id="form1" runat="server">
    <input id="e_element_tr_search" value="none" runat="server" type="hidden" />    
    <div>
        <fieldset style="border:solid 1px #45A1C3; margin:0px 0px 0px 0px">
           <legend style="font-weight: bold; font-size: 9pt; color: #45A1C3; font-family:Arial"><%=clsCmm.getTextValue("frm_complete_title")%></legend>
            <table cellpadding="0" cellspacing="0" width="100%">
                <tr>
                    <td style="width: 6px; height: 48px;">
                        </td>
                    <td style="height: 48px;">
                        <table cellpadding="0" cellspacing="0" width="100%">
                            <tr>
                                <td style="width: 50px; height: 19px;vertical-align:middle; vertical-align:middle;"><font face="Arial" style="font-size: 9pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><asp:ImageButton ID="img_btn_Search" runat="server" Height="19px"
                                        ImageUrl="~/Resource/Images/cmm_search.gif" OnClick="img_btn_Search_Click" Width="18px" /></td>
                                <td style="width: 50px; height: 19px;"></td>
                                <td style="width: 50px; height: 19px;">
                                </td>
                                <td style="height: 19px">&nbsp;
                                </td>
                            </tr>
                            <tr>
                                <td style="height: 14px;"><strong><font color="#666666" face="Arial" style="font-size: 9pt">
                                    <asp:Button ID="lblSearch" runat="server" BackColor="White" BorderStyle="None" BorderWidth="0px"
                                        Font-Bold="True" Font-Names="Arial" Font-Size="9pt" ForeColor="#666666" SkinID="" Style="cursor: hand" Width="41px" OnClick="lblSearch_Click" /></font></strong></td>
                                <td style="height: 14px;"></td>
                                <td style="height: 14px">
                                </td>
                                <td style="height: 14px">&nbsp;
                                </td>
                            </tr>
                        </table>
                     </td>
                    <td style="width: 6px; height: 48px;">
                        </td>
                </tr>
                <tr id="element_tr_search" style="display:<%=e_element_tr_search.Value %>;">
                    <td style="height: 24px">
                        </td>
                    <td style="height: 24px;" valign="top">
                        <table cellpadding="0" cellspacing="0" width="100%">
                            <tr>
                                <td style="width: 120px; height:23px"><font color="#666666" face="Arial" style="font-size: 9pt"><%=clsCmm.getTextValue("frm_complete_txtProcess")%></font></td>
                                <td style="width: 220px; height: 23px;">
                                    <asp:DropDownList ID="drpProcess" runat="server" Width="200px">
                                    </asp:DropDownList></td>
                                <td style="height: 23px">
                                    </td>
                            </tr>
                            <tr>
                                <td style="width: 120px; height:20px"><font color="#666666" face="Arial" style="font-size: 9pt"><%=clsCmm.getTextValue("frm_complete_txtIncidentFrom")%></font></td>
                                <td style="width: 220px">
                                    <asp:TextBox ID="txtIncidentFrom" runat="server" OnKeyPress="if(((event.keyCode>=48)&&(event.keyCode <=57))||(event.keyCode==46)) {event.returnValue=true;}  else{event.returnValue=false;}" MaxLength="6" Width="77px"></asp:TextBox>
                                        <font color="#666666" face="Arial" style="font-size: 9pt"><%=clsCmm.getTextValue("frm_inbox_txtIncidentTo")%></font>
                                    <asp:TextBox ID="txtIncidentTo" runat="server"  OnKeyPress="if(((event.keyCode>=48)&&(event.keyCode <=57))||(event.keyCode==46)) {event.returnValue=true;}  else{event.returnValue=false;}" MaxLength="6"  Width="77px"></asp:TextBox></td>
                                <td>
                                    </td>
                            </tr>
                            <tr>
                                <td style="width: 120px; height: 20px"><font color="#666666" face="Arial" style="font-size: 9pt"><%=clsCmm.getTextValue("frm_complete_txtSummary")%></font></td>
                                <td style="width: 220px">
                                    <asp:TextBox ID="txtSummary" runat="server" Width="194px"></asp:TextBox></td>
                                <td>
                                    <asp:Button ID="btnSearch" runat="server" Text="Search" Width="70px" OnClick="btnSearch_Click" /></td>
                            </tr>
                        </table>
                        </td>
                    <td style="height: 24px;">
                        </td>
                </tr>
                <tr>
                    <td style="height: 20px">
                    </td>
                    <td style="height: 20px" valign="top">
                        <asp:Repeater ID="gvComplete" runat="server"  OnItemCommand='gvComplete_ItemCommand'>
                            <HeaderTemplate>
                                <table class="gv_boder" cellspacing="0" style="border-color:#ACA899;border-width:1px;border-style:None;width:100%;border-collapse:collapse;">
                                    <tr class="th">
                                        <td style="width:40px"><span onmouseover="this.style.cursor='hand';" onmouseout="this.style.cursor='default';"><%=clsCmm.getTextValue("frm_complete_gv_monitor") %></span></td>                                        
                                        <td style="width:40px"><span onmouseover="this.style.cursor='hand';" onmouseout="this.style.cursor='default';"><%=clsCmm.getTextValue("frm_complete_gv_status") %></span></td>                                        
                                        <td style="width:140px"><span onmouseover="this.style.cursor='hand';" onmouseout="this.style.cursor='default';"><%=clsCmm.getTextValue("frm_complete_gv_process_name") %></span></td> 
                                        <td><span onmouseover="this.style.cursor='hand';" onmouseout="this.style.cursor='default';"><%=clsCmm.getTextValue("frm_complete_gv_summary") %></span></td>
                                        <td style="width:70px"><span onmouseover="this.style.cursor='hand';" onmouseout="this.style.cursor='default';"><%=clsCmm.getTextValue("frm_complete_gv_step_name") %></span></td>
                                        <td style="width:70px"><span onmouseover="this.style.cursor='hand';" onmouseout="this.style.cursor='default';"><%=clsCmm.getTextValue("frm_complete_gv_start_time") %></span></td>
                                        <td style="width:70px"><span onmouseover="this.style.cursor='hand';" onmouseout="this.style.cursor='default';"><%=clsCmm.getTextValue("frm_complete_gv_finish_time") %></span></td> 
                                        <td style="width:70px"><span onmouseover="this.style.cursor='hand';" onmouseout="this.style.cursor='default';"><%=clsCmm.getTextValue("frm_complete_gv_applicator") %></span></td>
                                        <td style="width:70px"><span onmouseover="this.style.cursor='hand';" onmouseout="this.style.cursor='default';"><%=clsCmm.getTextValue("frm_complete_gv_owner") %></span></td>
                                        <td style="width:50px"><span onmouseover="this.style.cursor='hand';" onmouseout="this.style.cursor='default';"><%=clsCmm.getTextValue("frm_complete_gv_incident_no") %></span></td>
                                    </tr>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <tr class="thcd">
                                    <td colspan="10">
                                        <asp:ImageButton ID="imgGroup" CommandName="Expand" CommandArgument='<%#Eval("Range") %>' runat="server" ImageUrl="~/Resource/Images/cmm_dot_shrink.gif" onmouseover="this.style.cursor='hand';" onmouseout="this.style.cursor='default';" /><span style="font-size: 9pt; font-weight:bold; color:#929292;"><%#Eval("Title") %></span>                                 
                                        <asp:Repeater ID="dv_show" runat="server">
                                            <HeaderTemplate>
                                                    </td>                                        
                                                </tr>
                                            </HeaderTemplate>
                                            <ItemTemplate>
                                                <tr  class="thcl1">
                                                    <td><a onclick="javascript:winOpenFullScreen('monitor.aspx?TaskID=<%# Eval("taskid") %>')"  target="_blank" style="text-decoration: none;color:#6C6B6B; cursor:hand;">&nbsp;<img alt="<%=clsCmm.getTextValue("frm_complete_img_alt")%>" border="0" src="../Resource/Images/<%# Eval("img_monitor") %>" width="16" height="16"></a>&nbsp;&nbsp;</td>                                        
                                                    <td><img alt="" border="0" src="../Resource/Images/<%# Eval("img_status") %>" width="16" height="16">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>                                        
                                                    <td><a onclick="javascript:winOpenFullScreen('<%# Eval("openform") %>?TaskID=<%# Eval("taskid") %>')" target="_blank" style="text-decoration: none;color:#6C6B6B; cursor:hand;"><%# Eval("processname3")%></a></td> 
                                                    <td><a onclick="javascript:winOpenFullScreen('<%# Eval("openform") %>?TaskID=<%# Eval("taskid") %>')" target="_blank" style="text-decoration: none;color:#6C6B6B; cursor:hand;"><%# Eval("summary")%></a></td>
                                                    <td><%# Eval("steplabel")%></td>
                                                    <td><%# Eval("starttime", "{0:yyyy-MM-dd HH:mm}")%></td>
                                                    <td><%# Eval("endtime", "{0:yyyy-MM-dd HH:mm}")%></td> 
                                                    <td><%# Eval("initiator_name")%></td>
                                                    <td><%# Eval("taskuser_name")%></td>
                                                    <td><%# Eval("incident")%></td>
                                                </tr> 
                                            </ItemTemplate>
                                            <AlternatingItemTemplate>
                                                <tr  class="thcl2">
                                                    <td><a onclick="javascript:winOpenFullScreen('monitor.aspx?TaskID=<%# Eval("taskid") %>')"  target="_blank" style="text-decoration: none;color:#6C6B6B; cursor:hand;">&nbsp;<img alt="<%=clsCmm.getTextValue("frm_complete_img_alt")%>" border="0" src="../Resource/Images/<%# Eval("img_monitor") %>" width="16" height="16"></a>&nbsp;&nbsp;</td>                                        
                                                    <td><img alt="" border="0" src="../Resource/Images/<%# Eval("img_status") %>" width="16" height="16">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>                                        
                                                    <td><a onclick="javascript:winOpenFullScreen('<%# Eval("openform") %>?TaskID=<%# Eval("taskid") %>')" target="_blank" style="text-decoration: none;color:#6C6B6B; cursor:hand;"><%# Eval("processname3")%></a></td> 
                                                    <td><a onclick="javascript:winOpenFullScreen('<%# Eval("openform") %>?TaskID=<%# Eval("taskid") %>')" target="_blank" style="text-decoration: none;color:#6C6B6B; cursor:hand;"><%# Eval("summary")%></a></td>
                                                    <td><%# Eval("steplabel")%></td>
                                                    <td><%# Eval("starttime", "{0:yyyy-MM-dd HH:mm}")%></td>
                                                    <td><%# Eval("endtime", "{0:yyyy-MM-dd HH:mm}")%></td> 
                                                    <td><%# Eval("initiator_name")%></td>
                                                    <td><%# Eval("taskuser_name")%></td>
                                                    <td><%# Eval("incident")%></td>
                                                </tr>                                             
                                            </AlternatingItemTemplate>
                                            <FooterTemplate>
                                               <tr style="height:0px;">
                                                <td colspan="10">
                                            </FooterTemplate>
                                         </asp:Repeater>                                        
                                    </td>                                        
                                </tr>
                            </ItemTemplate>
                            <FooterTemplate>
                                </table>
                            </FooterTemplate>
                        </asp:Repeater>                       
                        </td>
                    <td style="height: 20px">
                    </td>
                </tr>
                <tr>
                    <td style="height: 20px">
                    </td>
                    <td style="height: 20px">
                    </td>
                    <td style="height: 20px">
                    </td>
                </tr>
            </table>
        </fieldset>
    </div>
    </form>
</body>
</html>
